/* 提醒中心页面样式 */

/* 页面头部样式 - 移动端优化 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 1;
}

.header-content {
    flex: 1;
    z-index: 2;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    font-size: 16px;
}

/* 筛选和排序区域 */
.filter-section {
    margin-bottom: var(--spacing-lg);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-label,
.sort-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.filter-select,
.sort-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* 提醒列表容器 */
.reminders-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* 提醒项样式 */
.reminder-item {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.reminder-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reminder-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--card-background-hover);
}

.reminder-item:hover::before {
    opacity: 1;
}

.reminder-info {
    flex: 1;
    min-width: 0;
}

.reminder-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.reminder-type-icon {
    font-size: 14px;
}

.reminder-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.reminder-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.reminder-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.reminder-edit,
.reminder-delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-muted);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.reminder-edit:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.reminder-delete:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.reminder-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.reminder-action.completed {
    background: #95a5a6;
}

.reminder-action:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* 已完成状态 */
.reminder-item.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(149, 165, 166, 0.05) 100%);
}

.reminder-item.completed .reminder-action {
    background: #95a5a6;
}

.reminder-item.completed:hover {
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(149, 165, 166, 0.1) 100%);
}

/* 紧急提醒样式 */
.reminder-item.urgent {
    border-color: #e74c3c;
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.reminder-item.urgent::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    opacity: 1;
}

.reminder-item.urgent .reminder-action {
    background: #e74c3c;
}

/* 过期提醒样式 */
.reminder-item.overdue {
    border-color: #f39c12;
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.reminder-item.overdue::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
    opacity: 1;
}

.reminder-item.overdue .reminder-action {
    background: #f39c12;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--spacing-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-content {
    padding: var(--spacing-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--hover-background);
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: var(--spacing-xl);
}

.modal-footer {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
    text-align: center;
}

/* 表单样式 */
.reminder-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 空白状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
    padding: var(--spacing-xl);
    text-align: center;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: var(--spacing-lg);
    color: #e8f5e9;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.empty-state-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .reminder-item {
        padding: var(--spacing-md);
    }
    
    .reminder-title {
        font-size: 15px;
    }
    
    .reminder-time {
        font-size: 12px;
    }
    
    .reminder-action {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: var(--spacing-md);
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .reminder-item {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .reminder-title {
        font-size: 14px;
    }
    
    .reminder-time {
        font-size: 11px;
    }
}